﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Master/AdminMaster.Master" AutoEventWireup="true" CodeBehind="RelationCheckAreaByMS.aspx.cs" Inherits="HZ.DrugTrade.Web.Admin.RelationQuery.RelationCheckAreaByMS" Title="无标题页" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    
    <meta http-equiv="pragma" content="no-cache"/>
   
<script type="text/javascript">
    function openReason(areaid, comps_id) {
            window.showModalDialog("CheckReasonMS.aspx?tem="+<%=System.DateTime.Now.Millisecond %>+"&areaid=" + areaid+"&comid="+comps_id, "", "dialogWidth:600px;dialogHeight:200px;scroll:yes;status:no");
        } //
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
     <div id="tabnav">
        <ul>
            <asp:Panel ID="Panel1" runat="server">
                <li class=""><a href="RelationCheckArea.aspx">中心配送区域审核</a></li>
            </asp:Panel>
            <li class="active"><a href="RelationCheckAreaByMS.aspx">盟市配送区域查看</a></li>
        </ul>
        <%--<div id="note">
            配送区域选择</div>
        <div id="note2">
        </div>--%>
    </div>
    <br />
    <table class="table">
        <tr>
            <td align="right">企业名称：</td>
            <td align="left">
                <asp:TextBox ID="txtCompanyName" runat="server"></asp:TextBox></td>
            <td align="right">中心审核状态：</td>
            <td align="left">
                <asp:DropDownList ID="ddlZXStatus" runat="server">
                    <asp:ListItem Value="">全部</asp:ListItem>
                    <asp:ListItem Value="0">未审核</asp:ListItem>
                    <asp:ListItem Value="2">未通过</asp:ListItem>
                    <asp:ListItem Value="1">已通过</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td align="right" style="display:none;">盟市审核状态：</td>
            <td align="left" style="display:none;">
                <asp:DropDownList ID="ddlMSStatus" runat="server">
                    <asp:ListItem Value="">全部</asp:ListItem>
                    <asp:ListItem Value="0">未审核</asp:ListItem>
                    <asp:ListItem Value="2">未通过</asp:ListItem>
                    <asp:ListItem Value="1">已通过</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td align="left" rowspan="2">
                <asp:Button ID="btnInquery" runat="server" Text="查 询" CssClass="btn" 
                    onclick="btnInquery_Click" /></td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label Text="项目：" ID="lblProjectid" runat="server" />
            </td>
            <td align="left">
                <asp:DropDownList ID="ddlProjectid" runat="server">
                    <asp:ListItem Value="0001">2012年内蒙古自治区网上医用耗材采购项目</asp:ListItem>
                    <asp:ListItem Value="0002">2014年内蒙古自治区网上高值医用耗材阳光采购项目</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
    </table>
    <%--<asp:HiddenField ID="hidStatus" runat="server" />--%>
    <asp:GridView ID="gvwArea" CssClass="mainlist" runat="server" AutoGenerateColumns="False" DataKeyNames="companyPS_Id,AreaId">
        <Columns>
            <asp:BoundField DataField="AreaName" HeaderText="盟市" />
            <asp:BoundField DataField="CompanyName" HeaderText="企业名称" ItemStyle-Width="70%" 
                HeaderStyle-Width="70%" Visible="false" >
<HeaderStyle Width="70%"></HeaderStyle>

<ItemStyle Width="70%"></ItemStyle>
            </asp:BoundField>
            <asp:TemplateField HeaderText="配送企业">
                <ItemTemplate>
                    <a href="javascript:void(0)" title="查看配送企业详细信息" onclick="window.open('../../CommonPage/CompanyInfo.aspx?companyid=<%# Eval("Companyps_id") %>','selectCompany','width=550,height=350,resizable=0,scrollbars=0, status=0, toolbar=0, menubar=0')">
                        <%# Eval("companyname")%></a>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="中心审核">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("checkByZbzx") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label2" runat="server" Text='<%# Eval("checkByZbzx").ToString()=="1"?"通过":Eval("checkByZbzx").ToString()=="2"?"未通过":"未审核" %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="盟市审核" Visible="false">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("checkStatus") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# Eval("checkStatus").ToString()=="1"?"通过":Eval("checkStatus").ToString()=="2"?"未通过":"未审核" %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            
            <asp:TemplateField HeaderText="审核不通过原因">
                <%--<EditItemTemplate>
                    <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("Reason") %>'></asp:TextBox>
                </EditItemTemplate>--%>
                <ItemTemplate>
                   <a href='javascript:openReason(<%#Eval("AreaID") %>,"<%#Eval("companyps_id") %>")'><asp:Label ID="Label3" runat="server">查看</asp:Label></a>
                </ItemTemplate>
            </asp:TemplateField>
            
            <asp:TemplateField HeaderText="操作" Visible="false">
                <%--<EditItemTemplate>
                    <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("审核") %>'></asp:TextBox>
                </EditItemTemplate>--%>
                <ItemTemplate>
                    <a href="CheckEnterpriseInfo.aspx?psid=<%#Eval("CompanyPS_Id") %>&areaid=<%#Eval("AreaID") %>">审核</a>
                </ItemTemplate>
            </asp:TemplateField>
            <%--<asp:TemplateField>
                <HeaderTemplate>
                    <asp:CheckBox ID="addTable_chkAll" runat="server" OnClick="SelectAllCheckboxes(this,'ctl00_ContentPlaceHolder1_gvwArea','ctl00_ContentPlaceHolder1_gvwArea_ctl01_addTable_chkAll');" />
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:CheckBox ID="checkbox1" runat="server" OnClick="chkChecked(this,'ctl00_ContentPlaceHolder1_gvwArea','ctl00_ContentPlaceHolder1_gvwArea_ctl01_addTable_chkAll');" />
                </ItemTemplate>
            </asp:TemplateField>--%>
        </Columns>
    </asp:GridView>
    <div class="page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_OnPageChanged">
            </webdiyer:AspNetPager>
    </div>    
    <div class="listctrl">
<hz:HzButton ID="btnExport" runat="server" Text="导出Excel" CssClass="btn" ToolTip="导出Excel"
                        OnClick="btnExport_Click" /></div>
    <div class="listip">
        <ul>
            <li>提示:1、要给本地市配送的企业,2、仅显示自治区药采中心审核通过的企业。 </li>
        </ul>
    </div>
    <%--<div class="listctrl">
        <asp:Button ID="btnCheck" runat="server" Text="审核通过"  CssClass="btn" 
            onclick="btnCheck_Click" />
    &nbsp;<asp:Button ID="btnCheckNo" runat="server" Text="审核不通过" CssClass="btn" 
            onclick="btnCheckNo_Click" />
    </div>--%>
</asp:Content>
